"""
元组和列表非常相似，列表可变，元组不可变
定义：被定义在一个小括号（元素，元素，元素）内的数据，称为元组
"""
tuple1 = ()
tuple2 = ("nginx","tomcat","redis")
tuple3 = (("nginx","1.26"),("tomcat","8.0"))
tuple4 = (["ls","cd"],["linux","centos"])

# 定义单元素的元组
tuple5 = ("linux",)
tuple6 = ("liunx")
print(type(tuple5))
print(type(tuple6))

for i,j in tuple3:
    print("软件名称：%s,软件版本：%s" %(i,j))